package bean;

import java.io.Serializable;

/**
 * apply
 * @author 
 */
public class Apply implements Serializable {
    private Integer applyid;

    private Integer baomingid;

    private Integer foodid;

    private Integer objectid;

    private Integer applytypeid;

    private String applytime;

    private String applyreason;

    private String remark;

    private Integer applytype;

    private String time;

    private String type;

    private String a;

    private String b;

    private String c;

    private static final long serialVersionUID = 1L;
    
    public Apply() {
		super();
	}
    
    public Apply(Integer applytypeid,String applyreason, String remark,Integer applytype) {
		super();

		this.applytypeid = applytypeid;
		this.applyreason = applyreason;
		this.remark = remark;
		this.applytype = applytype;

	}


    public Integer getApplyid() {
        return applyid;
    }

    public void setApplyid(Integer applyid) {
        this.applyid = applyid;
    }

    public Integer getBaomingid() {
        return baomingid;
    }

    public void setBaomingid(Integer baomingid) {
        this.baomingid = baomingid;
    }

    public Integer getFoodid() {
        return foodid;
    }

    public void setFoodid(Integer foodid) {
        this.foodid = foodid;
    }

    public Integer getObjectid() {
        return objectid;
    }

    public void setObjectid(Integer objectid) {
        this.objectid = objectid;
    }

    public Integer getApplytypeid() {
        return applytypeid;
    }

    public void setApplytypeid(Integer applytypeid) {
        this.applytypeid = applytypeid;
    }

    public String getApplytime() {
        return applytime;
    }

    public void setApplytime(String applytime) {
        this.applytime = applytime;
    }

    public String getApplyreason() {
        return applyreason;
    }

    public void setApplyreason(String applyreason) {
        this.applyreason = applyreason;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getApplytype() {
        return applytype;
    }

    public void setApplytype(Integer applytype) {
        this.applytype = applytype;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    public String getC() {
        return c;
    }

    public void setC(String c) {
        this.c = c;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Apply other = (Apply) that;
        return (this.getApplyid() == null ? other.getApplyid() == null : this.getApplyid().equals(other.getApplyid()))
            && (this.getBaomingid() == null ? other.getBaomingid() == null : this.getBaomingid().equals(other.getBaomingid()))
            && (this.getFoodid() == null ? other.getFoodid() == null : this.getFoodid().equals(other.getFoodid()))
            && (this.getObjectid() == null ? other.getObjectid() == null : this.getObjectid().equals(other.getObjectid()))
            && (this.getApplytypeid() == null ? other.getApplytypeid() == null : this.getApplytypeid().equals(other.getApplytypeid()))
            && (this.getApplytime() == null ? other.getApplytime() == null : this.getApplytime().equals(other.getApplytime()))
            && (this.getApplyreason() == null ? other.getApplyreason() == null : this.getApplyreason().equals(other.getApplyreason()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getApplytype() == null ? other.getApplytype() == null : this.getApplytype().equals(other.getApplytype()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getA() == null ? other.getA() == null : this.getA().equals(other.getA()))
            && (this.getB() == null ? other.getB() == null : this.getB().equals(other.getB()))
            && (this.getC() == null ? other.getC() == null : this.getC().equals(other.getC()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getApplyid() == null) ? 0 : getApplyid().hashCode());
        result = prime * result + ((getBaomingid() == null) ? 0 : getBaomingid().hashCode());
        result = prime * result + ((getFoodid() == null) ? 0 : getFoodid().hashCode());
        result = prime * result + ((getObjectid() == null) ? 0 : getObjectid().hashCode());
        result = prime * result + ((getApplytypeid() == null) ? 0 : getApplytypeid().hashCode());
        result = prime * result + ((getApplytime() == null) ? 0 : getApplytime().hashCode());
        result = prime * result + ((getApplyreason() == null) ? 0 : getApplyreason().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getApplytype() == null) ? 0 : getApplytype().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getA() == null) ? 0 : getA().hashCode());
        result = prime * result + ((getB() == null) ? 0 : getB().hashCode());
        result = prime * result + ((getC() == null) ? 0 : getC().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", applyid=").append(applyid);
        sb.append(", baomingid=").append(baomingid);
        sb.append(", foodid=").append(foodid);
        sb.append(", objectid=").append(objectid);
        sb.append(", applytypeid=").append(applytypeid);
        sb.append(", applytime=").append(applytime);
        sb.append(", applyreason=").append(applyreason);
        sb.append(", remark=").append(remark);
        sb.append(", applytype=").append(applytype);
        sb.append(", time=").append(time);
        sb.append(", type=").append(type);
        sb.append(", a=").append(a);
        sb.append(", b=").append(b);
        sb.append(", c=").append(c);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}